#if !defined(AFX_MSGOUTPUT_H__9786B339_7DEF_46DF_84E1_014F24704869__INCLUDED_)
#define AFX_MSGOUTPUT_H__9786B339_7DEF_46DF_84E1_014F24704869__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// MsgOutPut.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CMsgOutPut window
#define ID_VSCROLLBAR 0x4178445
#define ID_HSCROLLBAR 0x2a7c534

#include "SQLite/CppSQLite3.h"

#define MAX_SQL_STMT		2048

typedef struct _T_LOG_TABLE 
{
	char		szTblName[MAX_PATH];
	char		szTblFile[MAX_PATH];

}LOG_TABLE, *PLOG_TABLE;


class CMsgOutPut : public CEdit
{
// Construction
public:
	CMsgOutPut();


// Attributes
public:

// Operations
public:
   void OutPut(LPCTSTR szpText);
   void Odprintf(const char *fmt, ...);
   void DbgPrintf(BOOL bPrompt, const char *fmt, ...);

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMsgOutPut)
	//}}AFX_VIRTUAL

// Implementation
public:
	void NormalizeSQL(LPCTSTR strSrc, LPCTSTR strDst);
	void GetAppDir(CString &strPath);
	void SetDBFile(LPCTSTR strFile);
	CWnd*		m_pWnd;

	virtual ~CMsgOutPut();

	// Generated message map functions
protected:
	char * GetRandTableName();
	//{{AFX_MSG(CMsgOutPut)
	
	//}}AFX_MSG
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
	afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
    afx_msg void OnContextMenu(CWnd* pWnd,CPoint pos );
    afx_msg void OnKeyDown(UINT nChar,UINT nRepCnt,UINT nFlags);
	afx_msg LRESULT OnUpmFinish(WPARAM, LPARAM);
	DECLARE_MESSAGE_MAP()
private:
	CScrollBar m_wndVScrollBar;
	CScrollBar m_wndHScrollBar;

	CppSQLite3DB	m_dbSQLite;
	LOG_TABLE		m_stuTbl;
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_MSGOUTPUT_H__9786B339_7DEF_46DF_84E1_014F24704869__INCLUDED_)
